package com.jinsilu.freight.http.request;

import android.text.TextUtils;

import com.hjq.http.config.IRequestApi;

/**
 * author : byd
 * time   : 2022-05-11
 * desc   : 广告点击统计
 */
public final class AdCountApi implements IRequestApi {

    private String id;

    public String getId() {
        return TextUtils.isEmpty(id) ? "-1" : id;
    }

    public AdCountApi setId(String id) {
        this.id = id;
        return this;
    }

    @Override
    public String getApi() {
        return "api/advertisingRecord/updateViewNums/" + getId();
    }
}